#pragma once


class PackageHead
{
public:
	UINT16 _head;
	UINT16 _id;
	DWORD  _timeStamp;
};


class TestPackage
{
public:
	TestPackage(int pkgLen);
	~TestPackage(void);
public:
	void addCount(void);
public:
	int          _len;
	UINT8*       _pData;
	PackageHead* _pHead;
public:
	static UINT16 __pkgID;
	static UINT32 __crcTable[256];
	UINT32 computeCRC32(void);
	UINT32 getCRC32(void);
	UINT16 getPkgID(void)    { return _pHead->_id;        }
	DWORD  getTimeStamp(void) { return _pHead->_timeStamp; }
};

